package com.etime.shycourse.wx.applets.services.impl;

import com.etime.shycourse.wx.applets.dao.LessonMapper;
import com.etime.shycourse.wx.applets.dto.LessonDto;
import com.etime.shycourse.wx.applets.pojo.Lesson;
import com.etime.shycourse.wx.applets.services.interfaces.LessonServices;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wb
 * @since 2022-01-11
 */
@Service("WxLessonServiceImpl")
public class LessonServiceImpl implements LessonServices {
    @Autowired
    private LessonMapper mapper;

    /**
     * 根据 课时id查询 到视频文本
     *
     * @param LessonId
     * @return Lesson
     */
    @Override
    public Lesson selectByLessonId(Integer LessonId) {
        return mapper.selectByLessonId (LessonId);
    }
}
